<?
$menu				= new menu();
$arrParent		= $menu->getAllParent("categories_multi", "cat_id", "cat_parent_id", $rowType["cat_id"]);
$listOpenNode	= $menu->getOpenNode("categories_multi", "cat_id", "cat_parent_id", 0, "cat_type = 'product' AND cat_active = 1 AND lang_id = " . $lang_id, "cat_id,cat_name,cat_parent_id,cat_has_child", "cat_order ASC,cat_name ASC", $arrParent);
unset($menu);
?>
<div class="temp_0">
	<div class="title_0"><div class="L"><div class="R"><h3>Danh mục sản phẩm</h3></div></div></div>
	<div class="content menu_product">
		<ul>
		<?
		for($i=0; $i<count($listOpenNode); $i++){
			$link		= generate_type_url($listOpenNode[$i]["cat_name"], $listOpenNode[$i]["cat_id"]);
			$class	= ($listOpenNode[$i]["cat_id"] == $rowType["cat_id"] ? " current" : "");
			$padding	= ($listOpenNode[$i]["level"] > 0 ? ' style="margin-left:' . ($listOpenNode[$i]["level"] * 20) . 'px"' : "");
			echo '<li class="level_' . $listOpenNode[$i]["level"] . $class . '"' . $padding . '><a href="' . $link . '">' . $listOpenNode[$i]["cat_name"] . '</a></li>';
		}// End for($i=0; $i<count($listOpenNode); $i++)
		?>
		</ul>
	</div>
	<div class="bottom_0"></div>
</div>